package org.manusoft.refill.service;

import java.util.List;
import java.util.Map;

import org.manusoft.refill.domain.TVehicleDetailsRf;
import org.primefaces.model.SortOrder;

public interface VehicleService {

	
	public TVehicleDetailsRf createUpdateVehicle(TVehicleDetailsRf vehicleDetailsRf) ;
	public TVehicleDetailsRf findById(Integer id,boolean islock) ;
//	
//    public List<TDriverDetailsRf> loadLazy(int first, int pageSize, String sortField, SortOrder sortOrder, Map<String, String> filters);
//
//    public Long getRowCount(Map<String, String> filters);
//    
    public void delete(TVehicleDetailsRf vehicleDetailsRf) ;
    
    public TVehicleDetailsRf findByRegNum(String name);
    
    public List<TVehicleDetailsRf> loadLazy(int first, int pageSize, String sortField, SortOrder sortOrder, Map<String, String> filters);
    
    public Long getRowCount(Map<String, String> filters);
    
    public List<TVehicleDetailsRf> findByRegNumAutoComplete(String regNum);
}
